package com.myTest.io;

import java.io.InputStream;

public class Resources {
    /*创建加载字节输入流加载配置文件方法，存储在内存中*/
    public static InputStream getResourcesAsSteam(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
